def intNum():
    print("开始执行")
    for i in range(5):
        yield i
        print("继续执行,i=%d"%i)



num = intNum()

print(num.send(None))

print(num.send(2))

print(num.send(None))

